- if session[:user]==nil
  - cache("show/"+@media.id.to_s+"."+session[:loadedsettings]["theme"]+"."+session[:language]) do
    = render :partial => 'post'
    %a{:href=>'#comments'}
    - for comment in @media.comments.find(:all,:conditions=>"published=1 and banned=0").reverse 
      .comment
        %p.comment_details
          =_ "posted"
          = ":"
          =_ '(date)', comment.creation
          = " "
          =_ '(time)', comment.creation
          = " "
          =_ "by"
          = ":"+comment.name.to_s
        .comment_text= RedCloth.new(comment.comment).to_html 
    = link_to _('Back'), :action => 'list'
- else
  = render :partial => 'post'
  %a{:href=>'#comments'}
  - for comment in @media.comments.find(:all,:conditions=>"published=1 and banned=0").reverse 
    .comment
      %p.comment_details
        =_ "posted"
        = ":"
        =_ '(date)', comment.creation
        = " "
        =_ '(time)', comment.creation
        = " "
        =_ "by"
        = ":"+comment.name.to_s
      .comment_text= RedCloth.new(comment.comment).to_html 
  = link_to _('Back'), :action => 'list'

